---触发时
---@class BuffEffect2001480:BaseBuffEffect
BuffEffect2001480 = ClientFight.CreateClass("BuffEffect2001480", ClientFight.BaseBuffEffect)
local t = BuffEffect2001480
---@param fight Fight
---@param buff FighterBuff
function t:add(fight, buff)
    local add =    ClientFight.BaseBuffEffect.add(self,fight, buff, false);
    t:action(fight,buff);--直接触发一次, 计算属性
    return add;
end
function t:action(fight, buff, ...)
    local target = buff.target;
    local others = FighterUtils.getOthersBy(target, true, nil, true);
    local change = table.getn(others);
    local buffEffectValue = buff.buffBean.f_BuffEffectValue;
    buff.attributes.attributes = nil;
    local count = buffEffectValue[2] - change;
    if (count < 1) then
        ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
        return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
    end
    local addValue = count * buffEffectValue[2];
    if (addValue > buffEffectValue[3]) then
        addValue = buffEffectValue[3];
    end
    local logValue = addValue;
    buff.attributes.attributes[FighterAttributeEnum.ATK_PER.id] = addValue;
    SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]Fighter %s buff%s 场上敌方单位少于N个时  增加属性, 增加属性值 %s",
            fight.frame, target.fighterId, buff.modelId, logValue));
    ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
    return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
end
t.New()